package com.xqy.wexmini.VO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class DiscussVO {
    private Integer id;

    @JsonIgnore
    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "评论类型")
    private String type;

    @ApiModelProperty(value = "话题")
    private String topic;

    @JsonIgnore
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "评论内容")
    private String comments;

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "点赞数")
    private Integer praise;

    @ApiModelProperty(value = "评论数")
    private Integer discussNum;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "该用户是否点赞")
    private boolean ispraise;


    @ApiModelProperty(value = "头像")
    private String avatarUrl;
    @ApiModelProperty(value = "网名")
    private String nickName;
}
